import {dataPostRequest, deleteRequest, getRequest} from "@/network/axios";

export function getMenus(dto) {
    return getRequest("/MenuInfo/All", dto);
}

export function load(parentId) {
    return getRequest("/MenuInfo/Load", {parentId: parentId});
}

export function getTierAll() {
    return getRequest("/MenuInfo/TierAll");
}

export function getTier() {
    return getRequest("/MenuInfo/Tier");
}

export function getLevel() {
    return getRequest("/MenuInfo/Level");
}

export function added(menuInfo) {
    return dataPostRequest("/MenuInfo/added", menuInfo);
}

export function deleted(id) {
    return deleteRequest("/MenuInfo/Deleted", id);
}

export function getTop() {
    return getRequest("/menuInfo/Top");
}

export function getUserMenus() {
    return getRequest("/MenuInfo/UserMenus");
}